home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
asmmacros
/
am_02
/
rename.i
< prev
next >
Wrap
Text File
|
1995-03-19
|
2KB
|
63 lines
NOLIST
Rename MACRO ; 19 Dec 88
*------------------------------; Start of Rename macro.
NOLIST
IFC '\1','I' ; If <PointerToOldNameString> is specified,
LIST
; Put <PointerToOldNameString> in D1.
MOVE.L #\2,D1
NOLIST
IFEQ ReEntrant-1
LIST
ADD.L A5,D1
NOLIST
ENDC
ENDC
IFC '\1','D' ; If <OldNameString> is specified, then
LIST
; Make D1 point to <OldNameString>.
MOVE.L #\2.str,D1
NOLIST
IFND \2.str ; Unless it was previously defined,
LIST
SECTION DataSection,DATA ; The ASCII <OldNameString> string goes here.
\2.str:
DC.B '\2',0
CNOP 0,2
SECTION CodeSection,CODE
NOLIST
ENDC
ENDC
IFC '\3','I' ; If <PointerToNewNameString> is specified,
LIST
; Put <PointerToNewNameString> in D1.
MOVE.L #\4,D1
NOLIST
IFEQ ReEntrant-1
LIST
ADD.L A5,D1
NOLIST
ENDC
ENDC
IFC '\3','D' ; If <NewNameString> is specified, then
LIST
; Make D1 point to <NewNameString>.
MOVE.L #\4.str,D1
NOLIST
IFND \4.str ; Unless it was previously defined,
LIST
SECTION DataSection,DATA ; The ASCII <NewNameString> string goes here.
\4.str:
DC.B '\4',0
CNOP 0,2
SECTION CodeSection,CODE
NOLIST
ENDC
ENDC
LIST
CallLib Rename,dos ; Call Rename.
TST.L D0 ; Make the zero flag indicate failure.
*------------------------------; End of Rename macro.
ENDM
LIST